/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 20.09.12
 * Time: 10:48
 * To change this template use File | Settings | File Templates.
 */
package fgui.basic {
import fgui.GuiComponent;

import flash.geom.Point;

public class PageContainer extends GuiComponent {
    private var _page:Page;

    public function PageContainer(coordinate:Point, size:Point) {
        super(coordinate, size);
        _page = new Page();
        this.addChild(_page);
    }

    public function get page():Page {
        return _page;
    }

    public function set page(value:Page):void {
        this.removeChild(_page);
        _page = value;
        this.addChild(_page);
    }
}
}
